<template>
    <div id="Home-Detail-Top-Nav">
        <div id="Home-Detail-Top-Content">
            <p class="top">
                <i class="iconfont icon-sdf" @click="go()"></i>
                <span>
                    <i class="iconfont icon-sousu"></i>
                    <i class="iconfont icon-androidgengduo"></i>
               </span>
            </p>
            <div class="middle">
                <h2>
                    {{this.$store.state.HomeDetail.Detail.title}}
                </h2>
                <p>
                    知乎·2563个回答&nbsp;<i class="iconfont icon-ziyuan"></i>
                </p>
            </div>
            <div class="bottom">
                <p><span class="iconfont icon-yaoqinghuida"></span>邀请回答</p>
                <p><span class="iconfont icon-wolaihuida"></span>写回答</p>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Deatil-top-nav",
        methods:{
            go(){
                this.$router.go(-1)
            }
        }
    }
</script>

<style lang="scss" scoped>
    #Home-Detail-Top-Content {

        .top {
            width: 100%;
            position: fixed;
            top: 0;
            background-color: #FFFFFF;
            padding: 0.17rem 0.2rem;
            display: flex;
            justify-content: space-between;

            i {
                font-size: 0.19rem;
                line-height: 0.19rem;
                color: #373737;
            }

            span {
                i:nth-of-type(1) {
                    margin-right: 0.27rem;
                }
            }
        }

        .middle {
            padding: 0 0.14rem;
            h2 {
                width: 100%;
                font-size: 0.2rem;
                line-height: 0.28rem;
            }

            p {
                height: 0.4rem;
                line-height: 0.4rem;
                font-size: 0.15rem;
                color: #7b7b7b;

                i{
                    font-size: 0.09rem;
                    line-height: 0.4rem;
                    color:#7b7b7b;
                }
            }
        }

        .bottom{
            width: 100%;
            height: 0.52rem;
            border-top: 0.02rem solid #ebebeb;
            border-bottom: 0.11rem solid #f6f6f6;

            display: flex;
            justify-content: flex-start;
            align-items: center;

            p{
                width: 50%;
                color: #0062f2;
                font-size: 0.16rem;
                font-weight: bold;
                display: flex;
                justify-content: center;
                align-items: center;

                span{
                    color: #0062f2;
                    font-size: 0.16rem;
                    font-weight: bold;
                    margin-right: 0.02rem;
                }
            }
            p:nth-of-type(1){
                border-right: 0.02rem solid #ececec;
                height: 100%;
            }
        }
    }
</style>